﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BonsaiScrum.Mvc.Models.CreateSprintModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Sprint
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create Sprint</h2>
    
    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Create sprint failed. Please correct the errors and try again.") %>
        <div>
            <fieldset>
                <legend>Sprint Information</legend>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Start ) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextAreaFor (m => m.Start ) %>
                    <%= Html.ValidationMessageFor(m => m.Start ) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.End ) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextAreaFor (m => m.End ) %>
                    <%= Html.ValidationMessageFor(m => m.End ) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Description ) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextAreaFor (m => m.Description ) %>
                    <%= Html.ValidationMessageFor(m => m.Description ) %>
                </div>
                <%= Html.HiddenFor(x => x.ProjectID) %>

                <p>
                    <input type="submit" value="Create Sprint" />
                </p>
            </fieldset>
        </div>
    <% } %>
    
    <div>
        <%= Html.ActionLink("Back to List", "Index", new { projectId = Model.ProjectID }) %>
    </div>

</asp:Content>